package com.yehun.mapper;

import com.yehun.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> listAll();

    Role get(@Param("id") int id);

    int save(Role role);

    int update(Role role);

    int updateUserNumber(@Param("id") int id);

    int updatePermission(@Param("id") int id, @Param("permission") long permission);

    int remove(@Param("idArray") Integer[] idArray);

}
